package com.atgion.service;


import com.atgion.spzx.model.dto.system.SysUserLoginParam;
import com.atgion.spzx.model.vo.base.Result;
import com.atgion.spzx.model.vo.system.LoginResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;


@FeignClient(value = "manager")
public interface ManagerFeignClient {

    @PostMapping(value = "/auth/login")
    public Result<LoginResult> login(@RequestBody SysUserLoginParam sysUserLoginParam);

    @GetMapping(value = "/auth/logout")
    public Result<String> logout(@RequestHeader("Authorization") String authorizationHeader);
}
